<extend name="./Common/View/EasyUI/form.html"/>
<block name="form">
    <div class="row">
        <div class="span12">
            <form method="post" id="pageForm" class="form-horizontal easyui-form" action="Sys/Depart/add">
                <table class="table table-bordered table-striped">
                    <tbody>
                    <tr>
                        <th colspan="2">部门信息</th>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%">上级部门:</td>
                        <td width="35%">
                            <select id="pid" name="pid"></select>
                        </td>
                    </tr>

                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>部门名称:</td>
                        <td>
                            <input name="title" id="title" type="text" value="{$vo.title}" placeholder="请输入部门名称"
                                   class="easyui-validatebox" data-options="required:true,validType:'length[1,20]'">
                        </td>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>部门类型:</td>
                        <td width="35%">
                            <label class="radio inline"><input type="radio" name="type" value="1" checked>部门</label>
                            <label class="radio inline"><input type="radio" name="type" value="2">分公司</label>
                        </td>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>启用状态:</td>
                        <td>
                            <label class="radio inline"><input type="radio" name="status" value="1" checked>是</label>
                            <label class="radio inline"><input type="radio" name="status" value="0">否</label>
                        </td>
                        </tr>
                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>列表排序:</td>
                        <td>
                            <input class="easyui-numberspinner easyui-validatebox" data-options="required:true"
                                   style="width:100%;" name="sort" id="sort" value="99">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        $(function () {
            app.combotree('#pid', 'Sys/Depart/lists', null);
        })
    </script>
</block>